package com.briup.shopadmin.dao;

import com.briup.shopadmin.common.bean.Banner;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.jpa.repository.JpaRepository;

public interface IBannerDao extends JpaRepository<Banner,Long> {
    Page<Banner> findByTitleContainingOrderByActiveDesc(String title, PageRequest pageRequest);

    Page<Banner> findByTitleContainingAndActiveOrderByActiveDesc(String title,boolean active, PageRequest pageRequest);

}

